home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
soul.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-22
|
765b
|
33 lines
#ifndef SOUL_H
#define SOUL_H
/* Defines a soul for aliens and players, so that hopefully weapons will be
interchangeable from the computer and player */
class
Soul
{
private:
int lives, energy; // current number of lives and enrgy points
int score, maxenergy; // score, and energy when starting a new life
int value; // value when hit
public:
Soul(int lives, int menergy, int val);
Soul(const Soul& s);
Soul& operator=(const Soul& s);
void copy(const Soul& s);
int getScore(void) const {return score;}
int getLives(void) const {return lives;}
void setScore(int s){score=s;}
void setLives(int l){lives=l;}
void addScore(int s){score+=s;}
void subScore(int s){score-=s;}
void subEnergy(int e);
void addEnergy(int e);
};
#endif